package com.dolphin.servicepassengeruser.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class TestController {
//    @Value("${spring.application.name:123}")
//    private String name;
    @Value("${test-config}")
    private String testConfig;
    @GetMapping("/test")
    public String test() {
        log.info("123");
        return testConfig;
    }
}
